package com.bruan.d7_duration_period;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;

public class Test2 {
    public static void main(String[] args) {
        LocalDateTime strat = LocalDateTime.now();
        LocalDateTime end = LocalDateTime.of(2025,11,11,11,11);
        Duration duration = Duration.between(strat,end);

        System.out.println(duration.toDays());
        System.out.println(duration.toHours());
        System.out.println(duration.toMinutes());
        System.out.println(duration.toSeconds());
        System.out.println(duration.toMillis());
        System.out.println(duration.toNanos());
    }
}
